package com.scpii.api.persistence.common;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.scpii.api.domain.common.Field;

public interface FieldMapper {
	int deleteByPrimaryKey(Long id);

	int insert(Field record);

	int insertSelective(Field record);

	Field selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Field record);

	int updateByPrimaryKey(Field record);

	Field selectBySelective(Field record);

	List<Field> selectAppExpandField(@Param("appId") Long appId,
			@Param("categoriesId") Long categoriesId,
			@Param("status") Integer status);

	List<Field> selectUserEditInfo(@Param("appId") Long appId,
			@Param("categoriesId") Long categoriesId,
			@Param("userId") Long userId, @Param("status") Integer status);

	Long[] selectRequiredIdsNotFillIn(@Param("targetId") Long targetId,
			@Param("status") Integer status);
}